updating sql file