updated allarticles to use mongo db object