changed views sql