postgresql update set value from another table