refactored UserAttendance class for storing only ids of event and users
to avoid sql errors; fixed a bug in the UserManagement, that returned a
User object instead of a PublicUser