improve db write performance: add rewriteBatchedStatements property
improve db batch writing performance
Merge pull request #461 from dennishendriksen/master

Improve db batch writing performance