Create run migration logic.

Inject database adapter into command in order to pass into migration/upgrade.
Fix syntax error.
Add missing argument.