dictfetchall usage fix