update index for influxdb query method