Added function to get average time, currently displays on stats page (may need to move this out to a superstats page). Redirecting post to a /stats/:id to avoid refreshing the page inserting repeat data