Fix bug with replacing end date in dividendhistory

Fixed incorrect 'd', 'e', and 'f' parameters in dividendhistory table as noted in jpetso's comment in pull request #427