Fix name table. Add cascde constraint