def METHOD_NAME(table, cats, update="", *clsses):
    cur = table.conn.cursor()
    if update:
        print("Update table inserting classification data")
        print(update)
        clsses.append(cats)
        table.execute(update, many=True, values=zip(*clsses))
    else:
        print("Insert data")
        table.insert(zip(cats, *clsses), cursor=cur, many=True)
        cur.close()
    table.conn.commit()