debug logging of INSERT queries