moved task statistic methods to query service as they were directly using query service anyway