Revert "Update sql HoR and ToC. (Thx tea91)"

This reverts commit 179b270a84ac00485dcd9561010e8376f845d217.