postgresql update only if not null