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