avoiding repeat code in notification_instance. Still a refactor would be great as the plugins_events table is getting filled in plugin.py and thus should be cleared in there.
added sub to be called during main loop to clear plugins_objects table