Moved markov chain querying to db.
Made the bot accept a stimulus but it's pretty bad.