Fixes to TopicAnalyzer to store its data to the SQLite file