Updated EDMX query regarding checking database