Attempt to re-connect to the database if the connection is invalid after an update.