Refactor command line construction into a separate class

By moving the command line construction into a separate class it should
be possible to make this database agnostic. To add support of a new DB
just add a database specific cmbBuilder implementation.
Currently supports only MySql.