Add inTransactionInBackground method