Fix returning memory provider in executeTransactionSql