Getting Data from A Database Based on fieldkey

@russian-dima update: So I finally settled on the fact that I can’t get the result outside of the Promise scope, so I did this:

wixData.get("My Collection", id)
  .then( (results) => {
  var t = results.title; 
  $w("#text1").title = t; //String(results.title); 
  console.log(results.title); 
  console.log(results); 
  } )
  .catch( (err) => {
    let errorMsg = err; 
  } );

I am setting the Text of a text equal to the Database item’s title. The Console Log gives me what I want, but the text is not changing. I tried converting it to String and everything. I also tried indexing the results.title on the console log (ex: results.title[0] which gave me the first letter of the title) which confirms it’s a String.
What am I doing wrong? I can’t seem to use the data from this no matter what I do.