Facing the error : “Invalid DSN”, please advise what is wrong with DSN:
Try beginning the DSN with sqlite://
(double slashes instead of single slashes)?
Apparently, the path has to look like so on linux:
sqlite:////full/unix/path/to/file.db
and like so on windows
sqlite:///c:/full/windows/path/to/file.db?mode=0666
Hope that helps
(Source)