fixed errors in sql file