Converts the cursor information from a SQLite query to a dictionary.

    :param      cursor | <sqlite3.Cursor>
                row    | <sqlite3.Row>

    :return     {<str> column: <variant> value, ..}

def dict_factory(cursor, row):
    """
    Converts the cursor information from a SQLite query to a dictionary.

    :param      cursor | <sqlite3.Cursor>
                row    | <sqlite3.Row>

    :return     {<str> column: <variant> value, ..}
    """
    out = {}
    for i, col in enumerate(cursor.description):
        out[col[0]] = row[i]
    return out