Fix for DB creation and migration with new date schema changes.