Reset database error condition after handling a database exception