Update:
Changed the template... Transfer is working. Books are on the device ok.
Plugged back in : no books listed

But now I'm getting database corruption :
Code:
calibre, version 6.25.0
ERROR: Unhandled exception: <b>CorruptError</b>:CorruptError: database disk image is malformed
calibre 6.25 embedded-python: True
macOS-12.6.6-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '21.6.0', 'Darwin Kernel Version 21.6.0: Mon Apr 24 21:10:53 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_X86_64')
Python 3.10.1
OSX: ('12.6.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Annotations (1, 17, 13) && Babelio_db (0, 8, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 6, 5) && Kindle hi-res covers (0, 5, 0) && Kobo Utilities (2, 16, 10)
Traceback (most recent call last):
File "calibre_plugins.koboutilities.action", line 1761, in check_device_database
check_result = self._check_device_database()
File "calibre_plugins.koboutilities.action", line 3742, in _check_device_database
return check_device_database(self.device_database_path())
File "calibre_plugins.koboutilities.action", line 6103, in check_device_database
result = cursor.fetchall()
apsw.CorruptError: CorruptError: database disk image is malformed