make user, role and medicines unique