phpunit work and dbconn refactoring