Add support for DB scoping in mongo compount