Add support for multiple mongodb databases in builder