Setting up memory profiling for Stats
Merge branch 'master' of github.com:monotasker/paideia
fixed bug in Stats class and eliminated a whole bunch of needless db calls