Can you track events by querying the database?

Hi,

Is there any reason why you want to modify the database directly which could break any data instead of using the reporting API to send the events to piwik?
https://developer.piwik.org/api-reference/tracking-api#optional-event-tracking-info