Viewing historical data in the monitoring dashboard using a database