Kuehne+Nagel interview question

How to approach a system with inefficient database queries.