CREATE TABLE IF NOT EXISTS photos { id TEXT PRIMARY KEY, created INTEGER, updated INTEGER, deleted INTEGER DEFAULT 0 } CREATE TABLE IF NOT EXISTS version { id TEXT PRIMARY KEY, updated INTEGER UNIQUE }