fixed problems resume game
Fixed createDatabase