Management and storage of timeseries