ID card firm sacked after losing jail data