implementing new TimeSeries db library