some status messages for scan and flush database more often during scan
to prevent error from cancelling entire scan