leveldb datastore implementation