Pass db connection object to connect-mongo.

This prevents errors when using a mongodb replica set connection string in the config files.