add support for prefetched records
add better db.query()
use new db.query()
add test for query with fetch plan
improve / fix new query api