Move db to server.js