writeChatroom in mongodb is now cleaner