Using multithreading to update progress indicator and attempt to connect to database at the same time.
Formatted multithreading changes
Implemented Multithreading to attempt database connection while still updating UI