workmandb: fix jobmanDao.queryStages() and jobmanDao.queryTasks() criteria