Fix issue with transaction and other pdo stuff.