Improved data loader that takes into account data type when parsing the CSV