*Other script-related fixes. --HG-- branch : trunk
Reapply these sqls whenever you install a new db or apply a db update pack!