Handle errors while iterating over records.
Merge remote-tracking branch 'upstream/master' into feature_migrationscript
use iterator as suggested by alexkiro, show logging output from backend, code cleanup