def getCustodian(cur, custodian):
    """
    The getCustodian function checks the database for a custodian and returns the ID if present
    :param cur: The sqlite3 database cursor object
    :param custodian: The name of the custodian
    :return: The custodian ID
    """
    sql = "SELECT id FROM Custodians WHERE name='{}';".format(custodian)
    cur.execute(sql)
    data = cur.fetchone()
    return data