update using inner join postgresql