def query(self, sql, sqlstring=False):
    conn = sqlite3.connect(self.dbname)
    cursor = conn.cursor()
    if sqlstring:
        cursor.executemany(sql, sqlstring)
    else:
        cursor.execute(sql)
    data = cursor.fetchall()
    cursor.close()
    return data
def query(self, sql, sqlstring=False):
    conn = sqlite3.connect(self.dbname)
    cursor = conn.cursor()
    if sqlstring:
        cursor.executemany(sql, sqlstring)
    else:
        cursor.execute(sql)
    data = cursor.fetchall()
    cursor.close()
    return data