First attempt at using a SQLite database instead of a csv read into a
table (should be much nicer if I can get it to work)