Refactor LogDb class.
Refactor LogDb class.

1. Improve constructor to configure both LogDb and SqlFormatter.
2. Extract enable and disable methods.
3. Reduce __call__ to a toggle.
4. Reuse the same handler and formatter every time.
henriquebastos/sqlformatter