// const zango = require('zangodb');

class DB {
  static saveOptions(options) {
    localStorage.setItem('mathDrillOptions', JSON.stringify(options));
  }

  static getOptions() {
    const opts = localStorage.getItem('mathDrillOptions');
    return opts ? JSON.parse(opts) : opts;
  }
}

module.exports = DB;

@@ -31,16 +31,109 @@
 odb');%0A%0A
+const MATH_DRILL_OPTIONS = 'mathDrillOptions';%0Aconst MATH_DRILL_SCORES = 'mathDrillScores';%0A%0A
 class DB
@@ -149,26 +149,25 @@
 ic s
-aveOptions(options
+etItem(key, value
 ) %7B%0A
@@ -191,34 +191,19 @@
 setItem(
-'mathDrillOptions'
+key
 , JSON.s
@@ -215,15 +215,13 @@
 ify(
-options
+value
 ));%0A
@@ -241,16 +241,16 @@
  get
-Options(
+Item(key
 ) %7B%0A
@@ -259,20 +259,20 @@
   const 
-opts
+item
  = local
@@ -291,70 +291,347 @@
 tem(
-'mathDrillOptions');%0A    return opts ? JSON.parse(opts) : opts
+key);%0A    return item ? JSON.parse(item) : item;%0A  %7D%0A%0A  static saveOptions(data) %7B%0A    DB.setItem(MATH_DRILL_OPTIONS, data);%0A  %7D%0A%0A  static getOptions() %7B%0A    return DB.getItem(MATH_DRILL_OPTIONS);%0A  %7D%0A%0A  static saveScores(data) %7B%0A    DB.setItem(MATH_DRILL_SCORES, data);%0A  %7D%0A%0A  static getScores() %7B%0A    return DB.getItem(MATH_DRILL_SCORES)
 ;%0A  

Add some DB methods for saving/getting scores. Issue #196