def query(self, sql):
    self.conn.execute(sql)
    if (self.conn.rowcount >= 1):
        row = self.conn.fetchone()
        while (row != None):
            (yield row)
            row = self.conn.fetchone()
    else:
        return
def query(self, sql):
    self.conn.execute(sql)
    if (self.conn.rowcount >= 1):
        row = self.conn.fetchone()
        while (row != None):
            (yield row)
            row = self.conn.fetchone()
    else:
        return