Added leveldb support