dbcheck: Ensure to always increase the error_count