Database events

Hi !
I would like to know where the events such like sip registration and unregistration are stored ?
Is it possible to store them in a MySQL database ?

Thanks a lot.