Fix random SQLExceptions.