Added query library class
Added call for query lib