manage Query updated for 2 question types
1 question running properly
removed extra printfs