How can I repair my Photos database?
1) I connected a new iPhone by cable to my iMac. Photos opened and when I navigated to Devices > iPhone, The screen display told me that I had already imported 600 or so photographs (I had not) and that I had 300 or so 'new' photos. Thing is, I'd not taken any photographs. These photographs were already in my Library. To make matters worse, some of the images were in my Hidden album in Photos but now visible for all to see.
The only way to stop this that I could find was to create a new album, import the 'new' photos into it and then delete them.
2) Then I bought a new iPad. Again connected it by cable to my iMac and navigated to Devices > (sic) iPhone. This time the display told me 6000+ photographs already imported and 3000+ 'new' photographs. Again, these 'new' photographs are already in Photos. They were taken 10 years or so ago. I haven't taken any photos with my new iPad yet.
How can I fix this ?
iMac 27″, macOS 10.15