Moved notifications system to EMS database connection