Added query engine to apps