Batch cursor updates for PDSs (#245)
Bumping the cursor in the DB for every event has become a bottleneck on
event throughput.
To ameliorate this, we can batch cursor updates and flush them to the DB
every 10 seconds.
