use leveldb to store cmd