fixed get ranged calls in database sink