db:

session and last time offset are cached so no need to query db each
event write;
removed ROWID field;