change previous alarm to a foreign key with reference to an alarm object