Fix empty details in database uri
Fix connection testing in wizard