public static bool hasLightsOnFeature()
        {
            if (Membership.GetUser() == null)
                return false;

            Guid UserId = (Guid)Membership.GetUser().ProviderUserKey;

            using (DB db = new DB())
            {
                UserInfo info = (from o in db.UserInfoSet
                                 where o.UserId == UserId
                                 select o).FirstOrDefault();

                if (info == null)
                {
                    DateTime d = DateTime.Now;

                    info = new UserInfo();
                    info.UserId = UserId;
                    info.UseLights = false;
                    info.ShiftStart = new DateTime(d.Year, d.Month, d.Day, 6, 0, 0);
                    info.EffChartEnabled = false;
                    info.EstimatedOutput = 0;

                    db.AddToUserInfoSet(info);
                    db.SaveChanges();

                    return false;
                }
                else
                {
                    return info.UseLights;
                }
            }
        }