[collection-edit] Handle duplicate key error properly. Avoid SQL error on new.
[collection-edit] Handle duplicate key error properly. Avoid SQL error on new.

lkraav/davical-rss-feature-branch,lkraav/davical-rss-feature-branch,lkraav/davical-rss-feature-branch,lkraav/davical-rss-feature-branch