Fix connection parameters for mongo