add scripts

+mgrep.sh
+upgrade.php