implementing transaction for case and also reminders