Fixed implementation of stats

* Fixed broken SQL queries
* Merged userStats.py into user.py
* Stats now return objects, properly
Merge pull request #19 from nhardy/master

Fixed implementation of stats