Adding a check for pending DB updates.