remove mongooser middleware