Implemented proper delete methods for several objects and fixed
relationship between subject and subjectgroup