save markov db on exit, load on start