A database connect written in PHP using OOP