Converted scripts to use data.table and fread() instead of read.csv2.sql for better performance in reading data from source file.