Finalized database insertions.  Added command line options to do process of only certain directories.
added sql code to generate db