Authenticate to the database

If both `MONGODB_USERNAME` and `MONGODB_PASSWORD` are set, authenticate
the connection. Also use Database as described in the documentation.

ref: http://api.mongodb.org/python/current/api/pymongo/database.html