added DB inserts
added criteria for in house games