Update sql HoR and ToC. (Thx tea91)