DNN-4253: fixed this bug where a new record is created instead of existing being updated.