Improve exception message when ForeignKey insert fails