indexeddb wrapper, cleanup, db prefs, centering prefs