work in progress: first pass implementation of code to persist data to leveldb; untested.
remove dummy test