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