commit changes to sql