Damn! very, very cool - my hat's off to you!
Here's some extra pointers for anyone else who wants to try this;
make a separate directory for this php and rename it "index.php" that's because inside the php, it refers to "index.php" all the time. or you have to rename all the references to index.php to what the file name currently is (peq_updater.php).
If you want more security, you can make a new MySql account for this php and only give priv to the account table of your database.
Really works great! If you can get this running, you need look no more, if this is what you want.
Thanks!
