fix the syntax error in sql file