Database connection done using OOP