You will need to put your code where I left the comments. For example, your wixData.query code should be in the last else statement
You will need to put your code where I left the comments. For example, your wixData.query code should be in the last else statement