Fix SQLite composite primary key
Merge pull request #485 from fluxxu/master

* fluxxu-master:
  Fix SQLite composite primary key