update table with inner join postgresql