Import/export bug fixes

Import Comments and Tracking, properly format timestamps, unique
constraint on (Tracking.user_id, Tracking.term_id), rollback when
breaking unique constraint.