Update mongoose config