sql update left join postgresql