Refactoring query functions.

By default all jdbc driver implementations obtains all result in memory, with
exception of use database level cursors that are not supported by all databases.
For it, it useless make a lazy result thinking on memory usage, because a memory
are already in use.