Having the permissions wrong was user error: both ~/Photos and photos.db are on a Samba share which I hadn't mounted in such a way as to get the correct user id.
Having the permissions wrong was user error: both ~/Photos and photos.db are on a Samba share which I hadn't mounted in such a way as to get the correct user id.