Postgres Aggregate Into Arraylist Remove Duplicates