I have a method in my flask app that all the users can run it. I have to make sure that it is never get run multiple times at the same time because there are lots of database qu