Finish db queries at a few more spots
Amending commit 48c0b11ef and finish queries at more spots to resolve a problem I have with the AppImage to update a DB of version 8.