use sqlite istead of prefs.js