Fixes issue #219

When deleting a view, remove it from the view cache if it is stored there.
Fixed issue with deleteView and getExistingView logic
fixes issue #219

reinstated test for view in DB if it is not in the view cache in getExistingView