Aesthetic changes, removed oracle cruft left in as comments by Dan Wickstrom'soriginal conservsion scripts ( while working on allowing null type table names).
Using the hostname is considerable better than using ad_url. Just in case we strip out "http://" in case someone accidently set the hostname with an http:// in front (not sure if AOLserver would allow this in the first place, but the devil is in the details).