As far as I can read articles on sqllite homepage it might occur in special cases like parallel access. So what if we promise the user to make a backup before? If the database becomes corrupt there is a way to get it back.

Do we use a different filename for database file and backup file? If not, that might be a problem.