save_db() only take dict() type data.
* Fix log bug
* Add some test cases.
typo