Boston United boosted their National League survival hopes with a first-ever win at Rochdale on Tuesday evening.