Switched to in-memory temp tables for building to avoid trouble with large databases. Updated SQLite. Limited headings to 255+ characters. Reopen DirectoryReader once in a while to avoid high memory consumption. Fixed flushing last headings to the database.