correct string aggregation for postgres