Query on indexes and fix for new boto