SyncJournal: Better error report for sql statements in updateDbStructure

Also, even if the updateDatabaseStructure fails, precompile the sql
statements.

This will help to debug and maybe solve bug #2106