refactor (Db.php) simplified connect() code
refactor (Db.php) remove unused code