fixes issue #219

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