instead of printing sql statements on an exception, stuff them into an ex-info and wrap them in another sql exeception so that the caller can handle logging