Fix bug with replacing end date in dividendhistory

Fixed incorrect 'd', 'e', and 'f' parameters in dividendhistory table.