Fix mongo db script.