Allow relative path to DB and close DB

* I added a method to open the SQLite file located in a subdirectory of the Firefox profile. The current one only allows to open in the profile directory.
* I added a call to close the DB, because another connect would fail.