added support for InfluxDB queries