Added hist data update method to data handeler class.

Have to change implementation of mongodb as computer can only open around 250 db files at one time. We should instead try to have 1 db per letter in the alphabet.