Fixed transactions in database driver.