Between run and metric switched around direction of relationship
Add caching to history entry
Extract method
Reduced number of sql queries