def __init__(self, table_name, df, insert_index=False, database=None):
    self.table_name = table_name
    self.database = database
    self.df = df.copy()
    if insert_index:
        self.df.reset_index(inplace=True)
def __init__(self, table_name, df, insert_index=False, database=None):
    self.table_name = table_name
    self.database = database
    self.df = df.copy()
    if insert_index:
        self.df.reset_index(inplace=True)