Finished the ave time query.

Like the rest of the queries for the stat screen they are untested.