Claim messages in SQlite.

Implements: blueprint storage-reference

Change-Id: Ib10f80e05b169f62885cd1ae88307b9aa3b37c0c