[TASK][!!!] Rework the TYPO3-related database abstraction API

Related: #59174
Change-Id: I848abc0b4522af1eda4fdbbb3041cb2ee86ea521
Reviewed-on: https://review.typo3.org/31454
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers