Adapt API with Mongoose. Basic functions working.