passing the collectionName and the cb