I have a Database on my website (I used CPanel to create it) and I have the JDBC installed (not sure how to make sure i do have it installed but im pretty sure i do) but what is needed now for me to connect to my database?
If the database is provided by a web server hosting company, it's usually behind a firewall (at least it would better be). Connecting to it would require creating a SSH tunnel
for the database connection.
Remember that whoever can connect to the database directly, has also the permission drop all tables in the database (and to delete all files on your web site). It's safer to create a PHP-frontend through which your program will access the data in the database.