added commit interval to handle large csvs