Fix primary key constraint in sqlite

Only add columns specified in primary key constraint rather than all
table columns.
Merge pull request #279 from dbeacham/sqlite-primary-keys

Fix composite primary key constraint in sqlite