Connect gamePage generatoin to dbs, add random page generation