BS-6792, fix issue with sql connection kept open when we ask user. Now the connection is open/closed for each migration step