LCD interferes with SD card functions

The Adafruit datalogger shield is compatible with both the UNO and Mega, so they don't connect SDA and SCL to the UNO's A4 and A5 by default. They bring them out to solder pads and you have to bridge them manually with solder. They use I2C for the real time clock and SPI for the SD card on their shield.