Support the new claim TTL semantics in SQlite.

This also fix a bug in update claim, which should
reset the age of the claim.

Change-Id: I69a31fd99bd23db87f6e77935889671c2b1c53ed
Implements: blueprint storage-reference
Merge "Support the new claim TTL semantics in SQlite."