hopefully fixed the "idle in transaction" issue