changed trade_permits table schema