Remove unnecessary db cleanup code in migrations.

[#60908070]
Fix adapter being hardcoded to MySQL and ensure params get redefined entirely.

[#60908070]
DRY commands function.

[Finishes #60908070]