Switch to pkgdb2 api in the indexer.