close to getting the chats to display
displays messages from db