Fix typos in comments used to help generate documentation.  No changes to code.
Fix an assert that can fail if the database file is corrupted.