changes to sql