title: Track database history
body: <pre><code>
  def startlog():
      id = enteruser.id
      x = time.localtime()
      sec = x.tm_sec
      min = x.tm_min 
      hour = x.tm_hour + 1
      day = x.tm_mday
      date = f&quot;{x.tm_mon}-{x.tm_mday}-{x.tm_year}&quot;
      starttime = (day * 86400) + (hour * 3600) + (min * 60) + sec
      updatestart = &quot;UPDATE log SET start = ?, date = ? WHERE ID = ?&quot;
      c.execute(updatestart, (starttime, date, id,))
      conn.commit()
  </code></pre>
  <p>I have this function startlog, and a clone of it endlog.</p>
  <p>My database log is consisted of (name, starttime, endtime, date)</p>
  <p>Is there any way to keep track of the changes?</p>
  <p>Desired output:</p>
  <p>Name / Time / Date</p>
  <p>x / time1 / date1</p>
  <p>x / time2 / date2</p>
  <p>I tried creating a list so everytime I'm calling out the function it will append on the list but it disappears after the session.</p>