[BUGFIX] Improve workspace support in DB Backend

Follow up task of https://review.typo3.org/#/c/32552/

Change-Id: Ia6de6780ae8a63307c1d0c6738c55dd4d0bd6452
Releases: 0.4
Resolves: #61360