1093762-Move mongo connection after logging is initialized and print error to co...

To preserve the error log, logging must be initialized before the mongo connection is attempted. Additionally, this error message should be printed to the console rather than simply hanging.

Fixes [BZ-1093762](https://bugzilla.redhat.com/show_bug.cgi?id=1093763)
Ah, I didn't know about logger.root. Is that the absolute root logger, or is it the root of this logger? Either way, as long as the log messages from pulp.server.db.connection get printed this is fine by me.