Fix database models and insertion
Allow unicorn to handle logging