A base repository for MongoDB