#386 When adding foreign keys, all missing relations will now be set to NULL or the record will be deleted if this means it is useless, removed all foreign key checks disable statements