[Solved] While executing: attempt to write a readonly database error

That might not be a good move and cause other issues.
Below proper ownership and permissions:

pi@ph5:~ $ stat -c "%U:%G %a %n" /etc/pihole/* | column -t
root:root      644  /etc/pihole/adlists.list
root:root      644  /etc/pihole/adlists.list.old
pihole:pihole  644  /etc/pihole/dhcp.leases
root:root      644  /etc/pihole/dns-servers.conf
root:root      644  /etc/pihole/ftlbranch
root:root      644  /etc/pihole/GitHubVersions
pihole:pihole  664  /etc/pihole/gravity.db
root:root      644  /etc/pihole/gravity.list
root:root      644  /etc/pihole/install.log
root:root      644  /etc/pihole/list.0.raw.githubusercontent.com.domains
root:root      644  /etc/pihole/list.1.mirror1.malwaredomains.com.domains
root:root      644  /etc/pihole/list.2.sysctl.org.domains
root:root      644  /etc/pihole/list.3.s3.amazonaws.com.domains
root:root      644  /etc/pihole/list.4.s3.amazonaws.com.domains
root:root      644  /etc/pihole/list.6.dehakkelaar.nl.domains
root:root      644  /etc/pihole/list.7.gitlab.com.domains
root:root      644  /etc/pihole/list.8.blocklist.cyberthreatcoalition.org.domains
root:root      644  /etc/pihole/localbranches
root:root      644  /etc/pihole/local.list
root:root      644  /etc/pihole/localversions
root:root      644  /etc/pihole/logrotate
pihole:pihole  644  /etc/pihole/macvendor.db
root:root      755  /etc/pihole/migration_backup
pihole:root    664  /etc/pihole/pihole-FTL.conf
pihole:pihole  644  /etc/pihole/pihole-FTL.db
root:root      644  /etc/pihole/setupVars.conf
root:root      644  /etc/pihole/setupVars.conf.update.bak