so the original code given for login in application.py had rows = db.execute("SELECT ...) and then session["user_id"] = rows["id"]
and the explanation said that that db.execute returns a key which in this case is called rows.
Now for register, then, we just have db.execute("INSERT...) and do we need session["user_id"] = ...and if so how do we get it? Not clear on the rows = db.execute...meaning and have tried to search for an answer..
I have to say that I set up the table so that there is a user-id which auto increments for each user so do I really need a user_id in register?