Time-series database