mongoose and restify working for CR