Refactor: Database: Break out initDatabase
Database: Simplify connection configuration

We had a few too many config values for connecting
to our database, in particular surrounding
https and authentication.

Also, we were at times connecting in two different
ways to the database server. Only use one way.