Call for inserting SQL query in chunks based on n rows

    Args:
        l (list): List of tuples
        n (int): Number of rows
        cn (str): Column names
        conn (connection object): Database connection object
        table (str): Table name
        db_type (str): If "sqlite" or "mysql"

def _chunk_query(l, n, cn, conn, table, db_type):
    """ Call for inserting SQL query in chunks based on n rows

    Args:
        l (list): List of tuples
        n (int): Number of rows
        cn (str): Column names
        conn (connection object): Database connection object
        table (str): Table name
        db_type (str): If "sqlite" or "mysql"

    """
    # For item i in a range that is a length of l,
    [insert_query_m(l[i:i + n], table, conn, cn, db_type) for i in range(0, len(l), n)]