Added comment for clarity
Defined classes in Klass. They will never change. Saved 90 queries.
Fixed user spec
Fetch match results in 1 swoop in stead of per result per oppclass. Saves 234 queries. ( 9 for 243 )
Rewrite to just get count(*) from DB and not instantiating all objects in an array just to get the length
ready for debugging