make commitAll method private and remove unused rollBackAll method