In show log: also show userid and model.
Added some indexes to speed up data retrieval.
In addentry: only update last loc in inst if new loc is newer.