php-contribution with traits.

class "Db" to be a singleton (realized via trait).