fixes to the sql file