adding frequency analysis to the db