Switched where the database is selected.

Switched where the mongodb database is selected. This makes it
easier to inject a client when being used as a module.