Midterm elections: Democrats thwart the red wave