Factor out tool checking. Check tools for --setupdb before running it. (Issue #6 nsoranzo)