Added dialog boxes, code fix with sql connector.