Feature/conditional action

Still need to do

[ ]  run the action in mongo with the Safe flag