Got groups and users working with new xref table, also added sort function to messages to sort by date