Implemented notification-system-style type awareness using service_collection and automatic insertion of missing type rows into the database.