updated database class and game engine