sql update if variable not null