Refactoring, seperate db connection and router from app.js
refactoring