added unique constraint to prevent adding multiple activities