added changes in bonsai.js and db.js