Close database connection
Fixes NaiveBayes classifier
Fix limit and GUI
Query expantion