fix extra queries being made for related lookups
uncomment logging of sql queries so we see queries on console