recover idfilepathdb and registerdb