Added chat log table to db and markov chain function