Added mongo db integration.