Read the DB name from the mongodb_uri

After this change, the mongodb_uri will need to include the DB name as described here: http://docs.mongodb.org/manual/reference/connection-string/

@haplo @thomasrockhu @rmariad can you guys take a look at this?
Would a ConfigurationError be auth related in this case?