The source is a URL, it can be a http:// url as well as a file://. However, we cannot open a sqlite database from a remote location. Therefore I copy the contents of the source first to a temp file on disk to open it.