fixed bug in inspect_dbs, but it still doesnt find and deal with duplicated primary keys, nor duplicate related names nor duplicate model names