Cahnnel Event add to database

Hello everyone
I want to add Channel Events to my database like as CEL.
But I like to add or update spesial table and database.
Would you please advise me how to make the script to add this Event to my database.

Thank in advance

Assuming you have Cel to log in MySQL you could make a PHP script to query the DB for new records and add the desired fields to your custom table