drop table history;
drop table seq;
drop table pw;

create table history(
  key int8,
  name text,
  date date,
  memo text,
  value int8,
  primary key (key)
);
  
create table seq (
  name text,
  value int8,
  primary key (name)
);

create table pw (
  userid text,
  username text,
  phrase text, 
  primary key (userid)
);

insert into seq values ('history', 1);
