db migrator small fixes