Added --database to exec cmd only if an active node (poor-man-cluster)