Changed return value in fetch_all_records from list to iterator.