change scanning to stop if there were major db issues