Just had an issue with a failed data import which resulted in processwire failing to import a page under the correct parent. Ultimately we had to remove the parent and reimport it.
Are there any database integrity checkers/orphaned item checkers available for PW which could flag up any problems?