using delete to clear out a structure before making a new one and doing db connect just before the prompt