code: def queuedb_append(path, queue_id, name, data):
      
      sql = "INSERT INTO queue VALUES (?,?,?);"
      args = (name, queue_id, data)
  
      db = queuedb_open(path)
      if db is None:
          raise Exception("Failed to open %s" % path)
  
      cur = db.cursor()
      res = queuedb_query_execute(cur, sql, args)
  
      db.commit()
      db.close()
      return True
docs: Append an element to the back of the queue.
      Return True on success
      Raise on error