Distributed: fixed problem with multiple db deployments