Kuehne+Nagel Interview Question

How to approach a system with inefficient database queries.