csv-to-sql: replaced script with C++ version