Fixes bug where archived classes show up in wrong teacher bios

This fixes issue #1072, in which teacher bios show the archived classes of teachers with identical names but different accounts. When generating the list of archived classes taught by someone, the code now only takes classes taught by someone with the same user ID and no longer searches based on first/last name.