fixed the sql file