Transactionalized database access