Refs #41, adds a database trigger to delete notifications with no notification_objects children.