Added mongo db persistence