Made DbSetup more generic so it can be used with modules other than cat.

DbSetup can now base the working directory off of any environment variable, not
just CAT_DIR.
testDbSetup.py did not work as pulled from the master and needed to be altered.