sql file fixes