fix begin_isolated_db_transaction method