Python returns false SQL table

I’m doing an assignment for CS50 where I have to make a website using Python, Flask, SQL, HTML… but I have encountered a very strange problem which I’m stuck on for hours.
The Website is a stock market simulation. You can buy and sell sh…