def dictfetchall(cursor):
    """

    Args:
        cursor: A python database cursor.

    Returns:
        A dict of the information in the cursor object.

    """
    columns = [col[0] for col in cursor.description]
    return [
        dict(zip(columns, row))
        for row in cursor.fetchall()
        ]