updated to support the new preferences storage of greasemonkey

uses sqlite in firefox_profile/gm_scripts/userscript_name.db