Added MongoDB Database support to save chatroom history
Improved support for MongoDB chat history