Add Exception when migrate fails to get DB informations
Update migrate.rb code to catch exceptions