fix sql file