Refactor mongoose package.json file