code: function getDatabase(callback) {
      node.log(`Getting database:\n${dbName}\n`);
      var dbdef = {id : dbName};
          return new Promise((resolve, reject) => {
              client.readDatabase(databaseUrl, (err, result) => {
                  if (err) {
                      if (err.code == HttpStatusCodes.NOTFOUND) {
                          client.createDatabase(dbdef, (err, created) => {
                              if (err) reject(err)
                              else resolve(created);
                          });
                      } else {
                          reject(err);
                      }
                  } else {
                      resolve(result);
                  }
              });
          });
      }
docs: ---------------------------------------------------------- DATABASE--------------------------------------------------------------------