Enhance logging

- log failed SQL queries
- log Inform dat in DEBUG