Update to use influxdb