Initial implementation

wrapper for memstore and leveldb