mongodb: use new yaml config format

Closes #31115.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>