clear up db transaction vulnerabilities