You cannot return anything from the constructor. You're already getting a new object back, you can't get another value on top of that and assign both to $db.
$db