[TH] remove in memory data store, replace with database

See instructions in README.md to get started.