Track query programs to access database and plot data