Transactions, last inserted id, exec query