[#49545073] Use transactions in prepare_and_execute_statement