add require statement to index.js to access db