create table messages ( id integer not null primary key, domain text, action text, class text, item text, sender text, payload json, tstamp timestamp default current_timestamp);