Minor formatting
Change most logging to properly format actual SQL inputs