var db = openDatabase("60000feet_db1", "", "VisitorLog", 1024*1024);
		db.transaction(function(tx) {
		  tx.executeSql("create table if not exists storage (name, val)");
		});
		function load() {
		  db.transaction(function(tx) {
		    tx.executeSql("select * from storage", [], function(tx, rs) {
			  var list = document.getElementById("list");
			  list.innerHTML = "";
		      var rows = rs.rows;
			  for (var i = 0, n = rows.length; i < n; i++) {
		        var row = rows.item(i);
				list.options[list.options.length] = new Option(row.val, row.name);
			  }
		    });
		  });
		}
		function add(name, value) {
		  db.transaction(function(tx) {
		    tx.executeSql("insert into storage (name, val) values (?, ?)", [name, value], function() {
		      load();
		    });
		  });
		}
		function remove() {
		  var list = document.getElementById("list");
		  if (list.selectedIndex < 0) {
		    return;
		  }
		  var selected = list.options[list.selectedIndex].value;
		  db.transaction(function(tx) {
		    tx.executeSql("delete from storage where name = ?", [selected], function() {
		      load();
		    });
		  });
		}
		function push()
		{
			var date=new Date();
			
			add(date.getTime(), "Visited at "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds());
		}
