refactored and renamed the repository so that it is not Mongo-specific