Refactored configuration to utilize MongoDB URI connection string.