postgresql update inner join