team_p_substitute makes needed db changes