JW - cleaned up the syntax for creating sqlite views in the provider