1. change REPLACE to INSERT OR UPDATE
2. only save game if data is changed from the storage