Update notes for submitted changes

* Added check that record with specified primary key exists