[TASK] DBAL: Log error if query fails