detect uniqueness on composite keys