refactored a bit.  documentdb create database and generate data works.