Make MySQL and MongoDB dump commands stat input databases

* Refactored command specs
* Add stat command for MySQL dump
* Add stat command for MongoDB dump