Added persistence support to sqlite

Change-Id: I33fd7d8bf96650e04819b2d9d846787656d1de97