Improved MongoDB configuration

Now it's more readable the connection configuration to a MongoDB database