configure mongoose with auto_reconnect option