Delete from tblContentTypeToContentType
==========================
What data is supposed to do in this table I'm not quite sure despite asking EpiServer support several times.
What it definiitely causes is no end of issues.
If you see a javascript error
_317 {message: "Unable to load....
or
TypeError: Cannot read property
Then the cause is most likely data in that table.