Major refactor of code so that less hard-coded values are used.  Overall...

..., the script should just do "everything" necessary based upon supplied user file systems and a table name.