Fix misconfigured logger service.
Flush complete workset in DCG.
Only set fields that are exists.
Convert timestamps to datetime objects.
Reuse entity if given.
Improve sql formation.