Fix db handle leaks for Query
Adding Hawk debugging