Database Wrapper Questions

Just a quicky, currently constructing a project for university and come up against a bit of a hurdle. I have a class called DatabaseConnect, now this connects to a MYSQL database, and has several methods, such as update etc... The problem comes when I call any of these methods from in another class, the class itself is public and i realise how to call a method from another class using:

Java Code:

DatabaseConnect.DatabaseConnect;

I could always extends the login class, which would allow me to access all these, but has anyone a better idea?