<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def queuedb_row_factory(cursor, row):
 """ Dict row factory """

    d = {}
    for idx, col in enumerate(cursor.description):
        d[col[0]] = row[idx]

    return d