Add leveldb support