Fixed issue with incorrect primary key, added additional logging information if querying games fails.