some small tools for leveldb.