uniqueness validation at database level