creating persistence layer (WIP)
ongoing leveldb persistence