Store data in a sqlite db rather than csv.
Script to import data from csv to db.