Switched local dates to iso standard, total calorie sql to HQL