def update(self, sql, sqlstring=False):
    conn = sqlite3.connect(self.dbname)
    cursor = conn.cursor()
    if sqlstring:
        cursor.executemany(sql, sqlstring)
    else:
        cursor.execute(sql)
    conn.commit()
    cursor.close()
def update(self, sql, sqlstring=False):
    conn = sqlite3.connect(self.dbname)
    cursor = conn.cursor()
    if sqlstring:
        cursor.executemany(sql, sqlstring)
    else:
        cursor.execute(sql)
    conn.commit()
    cursor.close()