A basic query engine for pyqgis