hashing and concatenating multiple rows