fixed primary key errors with sqlite