Add some functionality to pull stats from the database.