optimized exchange.sql n exchangebean by removing getentirelist of tables