generating ngram word
retrieving ngrams from mock dbconnector