Update to sql file