Updated db.js to require mongoose