Remove idf column from database.
Reduce calculation for idfs.
pep8
Test code.
Merge branch 'remove-idf-col'