Add retrigger for SQLite database failure in mock