Groan...WordPress uses the 'guid' field in wp_posts to specify the location of image attachments. How sucky.