history page stat reporting beginnings
some better sorting and smarter querying