Fixes #853: Added composite FK support for SQLite.