add collection package
Duplicates: add containId, getDuplicates, getTerms
IndexDatabase: use Duplicates collection class
IndexDatabase: use Terms collection class