You're trying to modify an attribute of the cursor. You want to call a method of the cursor.
It should be
cur.execute('insert into user_reg (username,pwdhash,email,initial_date)\ values (?,?,?,?)', [username, pwdhash, email, date])
Not
cur.execute = ('insert ...