move database url out of server.js into config