If it were me, I'd find a library that already knows how to parse CSV files, anduse that. Simply splitting eachline on a comma will NOT always get the job done. Furthermore, putting the data into the database with an appropriate datatype is the only way to do it right.
I wrote a library that parses Excel and CSV files. You might want to check it out:
CSV/Excel File Parser - A Revisit[
^]