add upgrade.php library