'Get a database by name.
Raises :class:`~pymongo.errors.InvalidName` if an invalid
database name is used.
:Parameters:
- `name`: the name of the database to get'

def __getitem__(self, name):

    return database.Database(self, name)
