fixing contact photo storage in sqlite3