implement range in sequel adapter