Update schema to have a numeric ID for log entries, to facilitate range selection
Bugfixes, and first naive implementation of log entry retrieval
Fixes and special case