Fix Sqlite db regeneration in case of deleted db
Merge pull request #597 from romainneutron/sqlite

[3.9] Fix Sqlite db regeneration in case of deleted db