Fix sql upgrade 111-112 - missing statement to set db_version

Without updating db version in settings we get stuck in the upgrade
loop forever
Merge pull request #1315 from rjmackay/fix-upgrade-112

Fix sql upgrade 111-112 - missing statement to set db_version