If the database is unusable, delete it from device

Since we are unable to open it, let's delete it instead.