Ported the majority of the query pipeline to the ibeis structure. Query time is slow as hell with sql. Need to do more intelligent caching.