title: sqlite database continues to insert the default admin
body: <p>I'm trying to create a system with a predefined admin and then the new admin can update the information after entering the database.</p>
  
  <p>In the first time I use the system, it does add the default admin but once I update the admin and re-open the system. it adds the default admin again.</p>
  
  <p>Here is the code for the default admin insert.</p>
  
  <pre><code>with sqlite3.connect('esr.db') as db:
     c = db.cursor()
     c.execute('CREATE TABLE IF NOT EXISTS admin (adminuser TEXT NOT NULL ,password TEXT NOT NULL);')
     c.execute('SELECT COUNT(*) FROM admin')
     count = c.fetchall()
     if len(count) == 0:
         insert = 'INSERT INTO admin(adminuser,password) VALUES(?,?)'
         c.execute(insert,['admin', 'password'])
     db.commit()
     db.close()
  </code></pre>