added miniprofiler. optimized linq to entities queries.