code: def dict_factory(cursor, row):
      
      out = {}
      for i, col in enumerate(cursor.description):
          out[col[0]] = row[i]
      return out
docs: Converts the cursor information from a SQLite query to a dictionary.
  
      :param      cursor | <sqlite3.Cursor>
                  row    | <sqlite3.Row>
  
      :return     {<str> column: <variant> value, ..}