Design and Implementation of a High-Accuracy Text-to-SQL Pipeline with LLMs