Bug Fix in connection variable of switch and drop db