update the sql file