St. Paul trims 117 teachers from district