Fixed endgame
Fixed db reloading