Follow the code of the blog to the bit where it takes the form submission for adding a new blog article/post.
This code will be executing a ping (or should be). Grab the code that fires the ping(s) and copy it to your script that is writing to the db directly.