page through select results, 10000 rows at a time