fixed sql file