Corrected addReminderSchedule functionality in the Database class