use bsddb to store FREQ data to deduce memory usage
replace tabs to spaces