Optimized database write by adding new batch property function.  Refactor database write and various other code
Merge pull request #150 from gitMbar/dev

Optimized database write by adding new batch property function.  Refacto...