markov chains: stop using sqlite