Fixed bug in sql file