can't this block be replaced with a fetchAll() ?