Add saving player's state to database