Change 'port' in mongodb store to local variable.