adding hostgame and modifying sqlfunctions and index to include it