db migration scripts fix