QB getQuery method edited