Checkpoint before changing pymysql query iterator approach to use yield.