Rewrote the whole mongoostatic module (twice) for the SagaSearch plugin