mongodb faactorization