Moved connection to app.js