Added HD data munger to queries.py