Added Connect dialog and Database class
Infinite loop

Tries again instead of exiting app after an unsuccessful attempt to
connect