journaldb:  Assert in case of SQL error

relates issue #2106