added mongoose to package.json and made some small updates to get it working again