Store Host & Service Events in Database?

Checkmk uses livestatus which is an API into the monitoring core. This one has all the information. Events and Notifications are stored in the history log.

You could create an event handler (raw edition) or alert handler (enterprise edition) to send information about events into a database.