Database: apply unique index to master email/username of an user