afanasy: sql statistics for each task execution