Start adding more detail into history sql tables