Updated config to use MongoDB