 <p>Like @CL was saying you can't have 2 records with the same <code>PRIMARY KEY</code></p> <p>this Table should be built with 3 columns.</p> <ol> <li><code>A_ID</code> PRIMARY KEY AUTO INCREMENT NOT NULL</li> <li><code>time</code> DATETIME (probably <code>NOT NULL</code> as well</li> <li><code>data</code> REAL</li> </ol> <hr> <p>in other words, Never set the Primary key in your code, let the database auto increment it for you, or use a GUID. </p> <p>this line </p> <pre><code>data=(1,2) </code></pre> <p>is the only thing that is being inserted into your database. so the only record in the database will be the one you insert, which is <code>1,2</code></p>