Fix 5 - Integrate frequency attribute in database

same for pinyin here