Updated MongoDB and repository interface