Added profiler and fixed a query or two