Added unique index for name of user per database

Every database may contain only unique user names.