Fixing sql file