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
Update indentation and cleanup file
Merge pull request #65 from vlucas/unique_upsert

Add unique validation for composite unique keys