Test database connection on startup

OE will now fail to start if it can't connect to the database. Turn off
this check by setting `db.testConnection=false`. Turning this check off
can be useful if you want to hack on OE without a database setup,
although you obviously can't do much without a database.