dbg query