Fixed implementation of stats

* Fixed broken SQL queries
* Merged userStats.py into user.py
* Stats now return objects, properly