add initial implementation of paginated secondary index queries (todo: add token support and tests)