MongoDB shares tumbled after the database company gave a disappointing profit outlook for the current quarter.