Add to_dictionary methods to db.Notification and db.Severity classes.