I\'m running a for loop on a function, and the database is updated on each loop. It then calls the database again using the for loop to update values on the database. Howeve