update mongodb and mongoose library