Add sql script to load db data into sqlite.

Getting this to work revealed a couple of bugs in the data
extraction, which this commit also fixes.
Add note about sqlite-load.sql to README.