Fix for db lock when migrations happen
Closes gitlab-org/quality/performance#193 (closed)
DB locks were causing failures when Migrations were taking place during upgrades. After some digging it was found that this was due to migrations needing to be performed directly to Postgres instead of through PgBouncer - https://docs.gitlab.com/omnibus/update/#using-postgresql-ha.
MR updates the steps to do the above by switching config before doing migrations (and then back).