Added update for globals to db.pl