Postgresql Group By Concatenate Strings C