def METHOD_NAME(interval):
    logger.info("-------------------")
    logger.info("Thread {} started!".format(str(interval)))
    logger.info(time.ctime(time.time()))
    logger.info("-------------------")
    start = interval[0] + 1
    end = interval[1]
    sql_cmds = []
    while start <= end:
        inum = str(uuid.uuid4()).upper()
        name = user_id_prefix + str(int(start))
        sn = user_id_prefix + '_sn' + str(int(start))
        dn = 'inum={},ou=people,o=jans'.format(inum)
        username = name
        cn = name + ' ' + sn
        attributes = (
            ('doc_id', inum),
            ('dn', dn),
            ('objectClass', 'jansPerson'),
            ('cn', cn),
            ('sn', sn),
            ('uid', username),
            ('inum', inum),
            ('jansStatus', 'active'),
            ('userPassword', make_secret('topsecret' + str(int(start)))),
            ('mail', username + '@jans.io'),
            ('displayName', cn),
            ('givenName', name),
        )
        sql_attribs = ['{0}{1}{0}'.format(qchar, a[0]) for a in attributes]
        sql_vals = ['{0}{1}{0}'.format(schar, a[1]) for a in attributes]
        sql_cmd = 'INSERT INTO {0}jansPerson{0} ({1}) values ({2})'.format(qchar, ','.join(sql_attribs),
                                                                           ','.join(sql_vals))
        sql_cmds.append(sql_cmd)
        start += 1
    conn, cur = connect()
    for cmd in sql_cmds:
        try:
            cur.execute(cmd)
            conn.commit()
        except Exception as e:
            logger.error(f"{cmd} did not execute!")
            logger.error(e)
    conn.close()
    logger.info("-------------------")
    logger.info(time.ctime(time.time()))
    logger.info("Thread {} Ended!".format(str(interval)))
    logger.info("-------------------")