Updated fix related cards tool
Fixed formatting on some queries