Schema migration

fixes #12