Begin batching
Check if batch is null before execution
Merge pull request #36 from dpedu/master

Batching of queries for action logging