Implement relationship between users and messages.