Made it work for TB database and also started breaking off hunks of the too-huge RedcapMunging.R file.