Sqlite

Converted script to use sqlite database instead of handling csv row-by-row.