I am trying to have a query returns a value and assign it to a variable. Then I need to use it in my code so I want to make this query syncronous, so that the rest of my cod