Add mongoose try codes.