From http://mrbool.com/how-to-connect-with-mysql-database-using-java/25440