Helper module to migrate time series data from mongodb to influxdb