corrected semi-colon problem, conf.php initial mode, some naming and added upgrade_db process call