fixed up sql file