its already defined so all we need to do is change this line to db.updateSeq += value;