added global search
Created global sql
Fixed data processing tyros