Corrected problem with half-committed code for adding n-grams to the database. Add them in bulk using the executemany method.