Frequency calculators

Functions to calculate and insert into the database functions with the frequencies of all n-grams (in the file calculate_frequencies.py)