'Converts a SQL cursor into an list of dicts.
Args:
cursor : The DBAPI cursor which has executed a query.
Returns:
A list of dicts where the key is the column header.'

@staticmethod
def cursor_to_dict(cursor):

    col_headers = list((intern(column[0]) for column in cursor.description))
    results = list((dict(zip(col_headers, row)) for row in cursor))
    return results
