Add restore_all and fix bug

* add restore_all command
* fix leveldb_data reuse bug
* add key amount compare to check command