Added primary key to model and fixed foreach loop issue on EveErrorList

Added primary key to a model (unsure if you wanted to do this so just did 1).
Moved EveErrorList DB cache outside of foreach loop