Made Query() append to slice if rows are left and the cap is reached.