add support for leveldb store