Fix sql file