Refactored activites to reduce direct database access
Removed last traces of exams (will be worked on in branch later)