This alerts entity type listeners and inserts a row in the key_value table (the latter prevents an 'error' on the status report page).