def get_db_conn():
    """Returns a connection to the database.

    Returns:
        a ``pymongo.database.Database``
    """
    _connect()
    db = _client[fo.config.database_name]
    return _apply_options(db)
Returns a connection to the database.

    Returns:
        a ``pymongo.database.Database``
    
fiftyone/core/odm/database.py