add idangerous function and translate all the index.html and db.js comments to English