Frequency calculators

Functions to calculate and insert into the database the frequencies of all n-grams