LB-856: The DB-upgrade causes errors if SQLite3 engine is used
* try blocks adjusted