private static void EnsureViewsAreUpToDate(DatabaseHeaderResponse karinsFilmerDb)
        {
            using (var c = new MyCouchStore(karinsFilmerDb.RequestUri))
            {
                JObject viewJson = ReadViewFileFromSolution();
                string viewJsonString = viewJson.ToString(Formatting.None);

                string jsonFromDb = c.GetByIdAsync("_design/views").Result;
                if (jsonFromDb != null)
                {
                    var o = JsonConvert.DeserializeObject<JObject>(jsonFromDb);
                    o.Remove("_rev");
                    jsonFromDb = o.ToString(Formatting.None);
                }

                if (viewJsonString != jsonFromDb)
                {
                    c.SetAsync("_design/views", viewJsonString).Wait();
                }
            }
        }