migrated controller function in default.py (for user profile) to use new classes and class_membership tables along with new helper functions in paideia_stats module.