Postgresql Group By Concatenate Strings R