update extension code for query data form service.