add leveldb support