Add unique validation for composite unique keys

 * Add test for single unique key (already had one for composite)
 * Fix issue where upsert fails on unique validation failure
 * Add 'Encrypted' type in tests to show power of custom types
 * Add SQLite db to .gitignore