Postgresql Update Query With Subselect