Added sqlite persistence for ios and android