Mongoose refactor

updated the handing for exports of mongoose models