Fix sql bug in CSV export
They were using image_id, which should media_id
Change the strucutre and add instituion name to the json