I am lucky that with stock charts, dividends are figured into history. So not a problem there.
When I did my Sector Backtesting though, I had to create a DB of my own that allowed for dividends and it was a major job since I had to do it for each sector.