In testing prDB, wwwDB and tracDB are all the same thing, but our
deployment actually uses three different databases, causing the
maintainer timeout cronjob to always fail.
It seems incorrect database connection strings do not necessarily cause
problems until the first query, so logging the potential errors here is
very helpful when debugging.
*_DBNAME is not a good name for a variable that not only contains the
database name, but also the host and other potential options of the
database connection string.