fixes #17474 - DROP db prior to restore on postgres
when using postgres as a database, and restoring and existing db dump, clean the target database prior to restore.
this allow the usage case when installing a new server, running foreman-installer and then restoring the database. (cherry picked from commit d39ced29daf3ad70f6af4881e2bc18b38e80ca31)
Related issues
Bug #17474: db:import_dump does not clean existing database prior to re-importing
fixes #17474 - DROP db prior to restore on postgres
when using postgres as a database, and restoring and
existing db dump, clean the target database prior to restore.
this allow the usage case when installing a new server,
running foreman-installer and then restoring the database.
(cherry picked from commit d39ced29daf3ad70f6af4881e2bc18b38e80ca31)