Prevent dying on duplicated names when upgrading from pkg 1.3

Some databases may be old and may have duplicate package names which is
now forbidden. When upgrading from pkg 1.3 db make sure those names if
any are renamed to be uniq.