take in the dbcollection instead of the collectionname