dbCreateSettings(username) {
    return this.database.run(this.queries.createSettings, username)
      .then(() => this.database.get(this.queries.getSettings, username))
      .catch(error => rejectUnexpectedDatabaseError('Unexpected error occured while creating settings', 503, error))
  }
/**
  * Helper function for creating settings in the database
  * @param {String} username
  * @returns {Promsie}
  */
Helper function for creating settings in the database
@param {String} username
@returns {Promsie}
Helper function for creating settings in the database @param { String } username @returns { Promsie }
dbCreateSettings(username) {
    return this.database.run(this.queries.createSettings, username)
      .then(() => this.database.get(this.queries.getSettings, username))
      .catch(error => rejectUnexpectedDatabaseError('Unexpected error occured while creating settings', 503, error))
  }
dbCreateSettings ( username ) { return this . database . run ( this . queries . createSettings , username ) . then ( ( ) => this . database . get ( this . queries . getSettings , username ) ) . catch ( error => rejectUnexpectedDatabaseError ( 'Unexpected error occured while creating settings' , 503 , error ) ) }
Helper function for creating settings in the database
 @param {String} username
 @returns {Promsie}
Helper function for creating settings in the database @param { String } username @returns { Promsie }