adding mongo db factory