Hello Dewd,
i Had the same problem on my linux-System. My databases are in the directory "sqlite". The databases had the "0777" permissions. But the directory "sqlite" himself had the "0755" permissions.
A "chmod 0777 sqlite" had solved the problem.
I hope, it solves your problem too.