improved sql statement. decided to stick with tradebooks.