Thanks for the detailed information on this! I had no idea that plesk could be configured to auto-pull via web hook. I might see about having this added to our Wiki as I'm sure others will find this useful.
Been an admin for ~13 years and still learning something new every day...
To connect from a script running on the server:
$con = new mysqli('localhost', 'milanan_user', 'bestpasswordever', 'milanan_database');
To connect from a remote script just use tommy.heliohost.org as the host instead of localhost.