(change:major) Replaced recently added code for mitigating the DB locked problem with the use of Connection.setbusyhandler.