#generate password hash and insert the user into the database
hash = generate_password_hash(password)
db.execute("INSERT INTO users(username, hash,email) VALUES (?,?,?)",username,hash,email)
I wanted to insert into the database but
it keeps giving me the error and I have also created users table in my SQL database and it has all the three columns in it. what can be the solution because i'm not seeing any syntax error in my code