Move unicity in the database into the tuple: (origin, name)

This allows to move out from origin within a seamless upgrade path
Move unicity handling from the table schema into external index to allow
more and simpler flexibility in the futur where we could want unicity on
(origin, name, arch)