I\'m trying to pass a variable during a for loop into a firebase database, however it comes back as the same value in each loop, I\'ve commented in the code, where the issues ha