Initial test cases in and passing for stats functionality

DB tests not yet written.  They must be written and passing before we can release 0.04