Added chat logging to MongoDB and Markov Chaining