Updated database on game end