jdbc event store: handling optimistic locking