added totalAmount and discountEndTimestamp to buddy group database