use mongo factory