Schema version 0 to 1 upgrade and migration