Refactored game data database transactions