Connecting to a Database the OOP Way