PDO throws syntax errors when using sqlite as a backend
invalid syntax for unique? added foreign key to make schema silmilar to mysql one.
composer doesn't install
according to wiki - goalioremmeber me require dev-master versions?
Merge pull request #15 from loganto/master

using && makes PDO throw syntax exceptions with sqlite databases.