Fixed some broken indices.
Reverted a query that used the "WITH RECURSIVE" clause, because not all versions of SQLite seem to support it.
Fixed a minor code duplication issue.  No apparent effect, but still.
Improved some debugging messages.  Added CALL to all entry points.
Changed a comment.  No functional change.
Fixed a bug where the deltasize is being entered for the actual size.
Removed some dead code.