reminder_condition: use db exceptions and parameters