postgresql update from left join