Arb tracking completed

ParentID keeps track of updated arbs. Also sorted a few bugs.
Updated database build

Updated table scripts and the directory structure. Added a build script
(untested).