title: Adding ID's to mySQL DB and DB knows which f_name and l_name to use
body: <p>I have an ID taken from a JAVA program and add it to my database over JDBC, the database logs the timestamp of everytime the ID gets sent to the database.</p>
  
  <p>All the jave program send to the mySQL DB is the unique ID for the particular card. My database looks like this</p>
  
  <pre><code>--------------------------------------------
  |id         | f_name   | l_name | timeStamp|
  +-----------+----------+--------+----------+
  |22 00 33   | peter    | bobs   |2015-07-10|
  |19 88 E7   | greg     | drip   |2015-07-10|
  </code></pre>
  
  <p>and so on, initially the database is created with all f_name, l_name and the ID, but then when i update from my java program and pass just the ID (which is all the information the program knows due to the ID coming from an RFID tag) it gives me null values across the names.</p>
  
  <pre><code>--------------------------------------------
  |id         | f_name   | l_name | timeStamp|
  +-----------+----------+--------+----------+
  |22 00 33   | peter    | bobs   |2015-07-10|
  |19 88 E7   | greg     | drip   |2015-07-10|
  |22 00 33   | NULL     | NULL   |2015-07-10|
  |19 88 E7   | NULL     | NULL   |2015-07-10|
  </code></pre>
  
  <p>I realise this is going to happen so my question would be, how do i fix this? so the names appear instead of null? I'm pretty new to DB's and its a wee bit confusing! Should i use triggers? another Table? 
  If so any help would be great!!!</p>
  
  <p>Thanks Jonny</p>