SqlBagOStuff: reuse code of parent class

It'll be easier to change the time threshold (currently 10 years)
in the future.

Change-Id: I24005148d40c47905d5b20cfd506decef2ae447e
Merge "SqlBagOStuff: reuse code of parent class"