code: function initialize () {
          return store.defineTable({
              name: operationTableName,
              columnDefinitions: {
                  id: ColumnType.Integer,
                  tableName: ColumnType.String,
                  action: ColumnType.String,
                  itemId: ColumnType.String,
                  metadata: ColumnType.Object 
              }
          }).then(function() {
              return getMaxOperationId();
          }).then(function(id) {
              maxId = id;
              isInitialized = true;
          });
      }
docs: Defines the operation table in the local store.
  Schema of the operation table is: [ INT id | TEXT tableName | TEXT action | TEXT itemId ]
  If the table already exists, it will have no effect.
  @param localStore The local store to create the operation table in.
  @returns A promise that is resolved when initialization is complete and rejected if it fails.