Issue #185 - use QAS_PAGE_SIZE instead of '500'
Issue #250 and #185 - don't use cursor for lookup, it doesn't work because we use OR in the query
Issue #218 - improve implementation of deleting surveyInstances