Added database connection between homepage and game