Use prepared statement to iterate through pages a row at a time.