added unique constraint to collectionhash