Fix DB offset method. Can not be negative.

As suggested, Pulling to 4.1.