changed error when connecting to mongo