Added the do method
close transactions on query results