Check table on hook, otherwise the database update tool crashes