Replaced deprecated t3lib_DB with \TYPO3\CMS\Core\Database\DatabaseConnection