Eric,<div><br></div><div>I can&#39;t help fixing the problem with your current code, but I can point you to the docs where Ryan says you should probably use functions like &quot;start-transaction&quot;, &quot;commit-transaction&quot; and &quot;call-with-transaction&quot; (in case you missed those).</div>

<div><br></div><div><a href="http://docs.racket-lang.org/db/query-api.html?q=db#(part._transactions)">http://docs.racket-lang.org/db/query-api.html?q=db#(part._transactions)</a></div>&quot;&quot;&quot;<br>PostgreSQL, MySQL, and SQLite connections are discouraged from using transaction-changing SQL statements<br>

&quot;&quot;&quot;<div><br></div><div>So, for example, <span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">(query-exec db &quot;BEGIN TRANSACTION&quot;) becomes </span><font class="Apple-style-span" color="#222222" face="arial, sans-serif">(start-transaction db).</font></div>

<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">[]&#39;s</font></div>

<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">Rodolfo Carvalho</font></div><div><br></div>