Fixed a bug in the sql file