Stop using spaces in the DSN for Postgres.

Semicolons are supported, I have no idea why we never used them.
Vastly improve DSN parsing in the installer.
Fix DSN parsing for database upgrades. Again, mainly for Postgres.