Sorry, don't have time right now to get into this, but here is sample code that will create a table with an auto_increment field, and it should start at 0.
CREATE TABLE Friends
([FriendID] COUNTER NOT NULL PRIMARY KEY,
[LastName] text,
[FirstName] text,
[Birthdate] date,
[Phone] text,
[Notes]...