Added mongo db code.