updating query of jobs-apps-stats report