update queries for challenge related APIs
update queries for challange related APIs