A compressed database for time series