cleaned up the update script, uses $db now
Authored by: patrickwallukat 2009-09-15
Parent: [r533]
Child: [r535]