SQLlite does not support adding a primary key field using ALTER. Try recreating the table and specify Primary Field on creation.