Implemented querying from db and using BagOfWordsConverter