updated stats page, with extra fields and linkage to db