postgresql update join 3 tables