Stuff for the statistics database.