Reorg sync and db to be testable. Add basic add test
Forgot to require sync
Sync validations should error gracefully
Fix bug with second add and clobbering existing types