CREATE TABLE IF NOT EXISTS audit_log ( id INTEGER PRIMARY KEY AUTOINCREMENT, event_type TEXT, userid TEXT, ts TIMESTAMP );