BUGFIX: wrong SQL query for min and max time of games