Mongoose properly opening/closing connection