rewrite the \Tizo\Database::factory() and \Tizo\Database:->__construct() methods