[!!!][TASK] Refactor and clarify the database exception handling
This change differentiates between connection errors and missing
tables in the database which were before handled equally.
It also writes the full exception to the log for debugging.
The former DatabaseConnectionException has been moved to
Exception\DatabaseConnectionException, a code migration is
provided with the change.