Setup basic structure for query interface.