updates to sql