new method next_id(...) returns next primary key id