optimized update query and no more safe mode for event update -> increase eventstore performances.cleaned code and trailing spaces