Added popup message when unable to connect to database.