add tools to check and fix DB/FS inconsistencies