pub fn insert_event(conn: &Connection, event: &Event) -> Result<i64>
Insert an event into the database.
Returns an error if the insert fails.