store/fetch from sqlite3, markov chain