added command line switches for view and index creation