added SQL foreign key constraint on arm_id