Some code refactoring
Output of tfidf vectors can be set over async_command database