Query layer added

-Added query class