periodic commit.  Partially through the code to initialize database