Failed to move Database | mysql user has no permission

My Instance is down because I moved the database to a wrong path. I can’t bring it back though. When I run nc-database to move it back to /var/www/nextcloud I get this:

ERROR: the user mysql does not have access permissions over /var/www/nextcloud

Here is my setup: I boot NCP on a RaspberryPi with a SSD drive. No SD card in the berry. The setup was running over a year now pretty smooth until I started to mess it up now.

Any help would be greatly appreciated.

Here is my system info

NextcloudPi version v1.52.0
NextcloudPi image NextCloudPi_03-02-22
OS Debian GNU/Linux 11. 5.10.92-v8+ (aarch64)
automount no
USB devices sda
datadir /var/www/nextcloud/data
data in SD yes
data filesystem ext2/ext3
data disk usage 590G/917G
rootfs usage 590G/917G
swapfile /var/swap
dbdir /media/USBdrive/ncdatabase
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service down
Postfix service up
Internet check ok
Public IPv4
Public IPv6 not found
Port 80 open
Port 443 open
Interface eth0
NAT loopback no
Uptime 9days