Refactored config to utilize MongoDB URI connection string format.