add index to map legends

I added an index on the school_id column to the map_legends table. I also noticed that there were a couple of extra queries being made to the map_legends table on the school show page.