BUG: replace iterrows with itertuples in sql insert (GH6509)