fix txt to sql