Added code to export all extracted data to a sqlite database, and adapted the
remaining code around it.