Modify PDTable to run its query when being printed