Enable foreign key checks after removing the plugin tables