def METHOD_NAME(name):
    """Return the usergroup with the given usergroupname"""
    ug = db.session.query(usergroup.Usergroup).filter(
        usergroup.Usergroup.name == name).all()
    # Usergroup must exist in database
    if ug:
        return ug[0]
    else:
        return False