Improves log output by adding spent time for queries