postgresql update set from another table