Error 150 (InnoDB constraint fail) fixed