back time series data to db