(bug) last fix on db connection in index.js