refactor (Db.php) remove unused code