Problems with returning Wix Data by function

@jonatandor35 I just know know that the problem is something with async and await. The function is in a backend script. I want it to return a value like 0, 1, 2, or 3 based on the query results.