added sqlite persistence