Yeah, so the reasoning behind this was....all of the index code is what Deepak originally wrote for the dashboard. I didn't want to mess with it so left it be...but needed the PuppetDB version code that it uses, so I stole that :)