def METHOD_NAME(cutoff_time, mirror_id=None):
    if mirror_id is not None:
        params = [cutoff_time, mirror_id]
        mirror_where = 'AND u.mirror_id = %s'
    else:
        params = [cutoff_time]
        mirror_where = ''
    vendor = database_vendor(MirrorUrl)
    if vendor == 'sqlite':
        sql = """