code: def _dictfetchall(self, cursor):
          
          columns = [col[0] for col in cursor.description]
          return [
              dict(zip(columns, row))
              for row in cursor.fetchall()
          ]
docs: Return all rows from a cursor as a dict.