Index page allows specific game request

By supplying the get parameter gameid to index.php, a specific game can be watched.
The database is updated: removed an unused index and added one on games.has_ended.
Merged stats queries in PHP for better performance.