Add qeury iterator

Add query API also callback iterator in the same way as Scan iterator(#250).