Using SQL to fill time series data gaps in InfluxDB