[BUGFIX] SQL error when using database queue in destructor

When using the queue object in a destructor, the reference to
$GLOBALS['TYPO3_DB'] does not exists, and results in an error.
To fix this, a reference to $GLOBALS['TYPO3_DB'] is created in
the constructor so the destruction process will destruct
the DatabaseConnection after destroying the MessageQueue.