Rays turn table on Red Sox, rally for 4-3 win