Generally it's not possible to return a value in a constructor of a class. In this case, $db contains the instance of the class, not the return value.
You could build a separate function, and have that function return the value:
toEcho(); ?>