process_corpus can now write a text file or SQLite 3 database instead of
just dumping to stdout.