Modifying the data access to use Mongoose ORM