Implemented Repository pattern with Mongoose