Updated Database.java to show a proper error message if the program
fails to connect to the MySql db