database connection moved from router to app.js