I am in need of a working (and easy to use) IPN script for AlertPay. I could not find any good ones that worked.

I want to be able to customize it so I can put an SQL query so it will insert info to a db when a user has bought an item.