removed the legacy prefetch query code
code cleanup: removed junk whitespace
code cleanup: removed unused query object fields
added row limit support for queries and an API function for making queries with row limit