Updated to latest mongoose, used new added features (nw)