Updated header.php and datagen_db.php to store variable state.

Also safety checkin of dotgen_argument.php