reworked schema migration
modified schema migration