Fix regression: undesired writes to the DB
Fix regression: undesired writes to the DB

Signed-off-by: Arthur Schiwon <9ae9918f3cbf5a90ebc25affe594cc53853aee42@arthur-schiwon.de>

andreas-p/nextcloud-server,nextcloud/server,andreas-p/nextcloud-server,michaelletzgus/nextcloud-server,nextcloud/server,nextcloud/server,michaelletzgus/nextcloud-server,michaelletzgus/nextcloud-server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,nextcloud/server,michaelletzgus/nextcloud-server