Better error handling for db migrate.