improved non-blocking queries to be able to introspect the statement handle