Fix foreign key constraint problem on insert
Add some non-nullery
Add mockup for insert code
Add new contact logger that uses mockup
Change ui title bars to be unique