Major rework to introduce MongoDB PackageRepository