Updated to mongoose 3.6.x