Implement hook

I am running Jitsi Meet on Ubuntu 18.04.4
I need to implement plugin/hook which will do the following:

When the last user left conference it will insert into DB:
conference room name,
conference start time,
conference end time,
count of unique users connected to room

Hi Filip,
I am happy to take this up, as this should be possible to implement and well within my skill set.
You can reach me on
Best Wishes and Have a great day,