updates the sql file