[BUGFIX] Fix remove actions in database API
[TASK] Include cache and category tables if available

In newer TYPO3 versions the caching framework
generates the table definitions dynamically.

Since 6.0 the category registry also dynamically
adds fields.

Add both to the table definitions if the TYPO3 API
calls are available.
Merge pull request #4 from helhum/database_api_improvements

Database api improvements