VFW-57 improve error reporting for "duplicate primary key" error