changed filter to criteria for count and distinct.
added insert, remove, replace, and update methods to IMongoCollection.