fixing indexed link
merge db.js