Cleaning Up Script (pt 3)

Reorganized the Database Script, deleted the most obviously obsolete
functions. Will go through and add comments to the rest of the script
later.