Made it so the database is updated when product groups are deleted.