1) added support for queryForIds
2) added support for scan and scroll