Postgresql Aggregate To Array