Move connection to database to server.js