Store statistics history in the database, and show a graph of their values over time.
Merge branch 'stats-history'

* stats-history:
  Store statistics history in the database, and show a graph of their values over time.