Initial structure for ajax call for query request