update to sql script